package cn.net.zidian.app;

import android.app.Application;

import com.hjq.bar.TitleBar;

import cn.net.zidian.util.TitleBarStyle;
import xyz.doikki.videoplayer.player.AndroidMediaPlayerFactory;
import xyz.doikki.videoplayer.player.VideoViewConfig;
import xyz.doikki.videoplayer.player.VideoViewManager;

public class App extends Application {

    public static App mApp;

    @Override
    public void onCreate() {
        super.onCreate();
        mApp = this;
        TitleBar.setDefaultStyle(new TitleBarStyle());
        VideoViewManager.setConfig(VideoViewConfig.newBuilder()
                //使用MediaPlayer解码
                .setPlayerFactory(AndroidMediaPlayerFactory.create())
                .build());
    }


}
